package com.lgh.demo;

import android.app.Application;

import com.lgh.demo.bean.BeanLocationInfo;
import com.lgh.demo.util.DensityHelper;
import com.sankuai.waimai.opensdk.MTWMApi;
import com.sankuai.waimai.opensdk.MTWMSDKOptions;

public class MyApplication extends Application {

    public static int longtitude = 95369826;
    public static int latitude = 29735952;
    public static long mPoiId = 2868095;

    public static BeanLocationInfo beanLocationInfo;

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化SDK，在这里，开发者需要使用自己申请的appId和secret，另外可以配置SDK是测试环境或是线上环境，SDK log输出等，默认都是false
        MTWMSDKOptions options = new MTWMSDKOptions.Builder().setAppId("8815341551211581")
                .setSecret("cf2b4509e79c473ba37d0b466b92d245").setTest(false).setLogEnable(true).create();
        MTWMApi.initialize(this, options);
        new DensityHelper(this, 1280).activate();
    }
}